<?php 
/**
 * ... ...
 * ... ...
 *
 */ 


JCAT_Package::ImportClass('JCAT_ViewGtk',JCAT::PACKAGE_MVCGTK) ;
JCAT_Package::ImportInterface('JCAT_IViewForm',JCAT::PACKAGE_MVC) ;


/**
 * 视图类 DocumentInfoView 
 *
 * @access public
 */
class DocumentInfoView 
	//<<[UnmodifiableBlock.Start]::Extends And Implements::>>//
	extends JCAT_ViewGtk
	implements JCAT_IViewForm
	//<<[UnmodifiableBlock.End]::Extends And Implements::>>// 
{
	
	/**
	 * 构造函数 
	 *
	 * @access	public
	 * @param	$aParent	JCAT_IViewContainer		视图的父对象(父视图 或 控制器)。注意：视图不应单独存在，必须有一个父对象！ 
	 * @return	void
	 */
	public function DocumentInfoView(JCAT_IViewContainer $aParent)
	{
		// 调用父类构造函数 
		//<<[UnmodifiableBlock.Start]::Call Parent Construct::>>//
		$this->JCAT_ViewGtk('DocumentInfoView','template.DocumentInfoView.glade','DocumentInfoView',$aParent) ;
		//<<[UnmodifiableBlock.End]::Call Parent Construct::>>// 

		$this->Initialize() ;	
	}
	
	/**
	 * 初始化 视图 
	 *
	 * @access	protected
	 * @return	void
	 */
	protected function Initialize()
	{
		// 载入UI控件
		$sCurrentDirectory = dirname(__FILE__).'/' ;
		$this->AddUICtrl(JCAT_Package::ImportInstance($sCurrentDirectory.'Instance.UICtrls/instance.DocumentPath.php'),'DocumentPath') ;
		$this->AddUICtrl(JCAT_Package::ImportInstance($sCurrentDirectory.'Instance.UICtrls/instance.DocumentName.php'),'DocumentName') ;
		
		//<<[UnmodifiableBlock.Start]::View Children::>>//

		//<<[UnmodifiableBlock.End]::View Children::>>// 
		
		
		// 在此加入其它初始化代码 
	 	// TODO ... ...

	}
	
	/**
	 * 创建主窗体事件 
	 *
	 * @access	protected
	 * @return	void
	 */
	 protected function OnInitView()
	 {
	 	// TODO
	 	// ... ...
	 }


	 
	 /**
	  * what's this
	  * 
	  * @access	public
	  * @return	void
	  */
	 public function OnEntDocumentNameChanged()
	 {
		$aUICtrlPath = $this->GetUICtrl('DocumentPath') ;
		$sPath = $aUICtrlPath->GetExchangeData() ;
		$sPath = trim($sPath) ;
		if(!$sPath)
		{
			return ;
		}
		
		// 目录
		if( is_dir($sPath) )
		{
			$sDirectory = JCAT_Global::TidyPath($sPath) ;
		}
		
		else
		{
			$sDirectory = JCAT_Global::TidyPath(dirname($sPath)) ;
		}
		
		// 视图名称
		$sName = $this->GetUICtrlExchangeData('DocumentName') ;
		$sName = trim($sName) ;
		
		if($sName)
		{
			$sNewPath = "{$sDirectory}class.{$sName}.php" ;
		}
		
		else 
		{
			$sNewPath =& $sDirectory ;
		}
		
		// 新内容
		$aUICtrlPath->SetDataByExchange($sNewPath) ;
	 }


	/**
	 * what's this
	 * 
	 * @access	public
	 * @return	void
	 */
	public function SetPath( $sPath )
	{
		JCAT_ASSERT::ASSERT_PATH($sPath) ;
		$this->SetUICtrlExchangeData('DocumentPath',$sPath) ;
	}
}

?><?
/**
 * [注意!!]
 *	以下内容由 JCAT PHP Toolbox 自动维护，手动更改的内容会被 JCAT PHP Toolbox 抹除，
 *	同时还可能破坏格式，导致 JCAT PHP Toolbox 无法正常读取。
 */
/*<<[UnmodifiableBlock.Start]::Coder Dialog Data::>>&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&//
<<{{DocumentClass:ViewGtkDoc}}>>
eCVEQSU5RFQlRDFuJTlCMCUxNCU3RCU5RiVCNCU4RlglM0UlNjAlODQ0JUU5WlpNJTIyJTA2JTNBJUFDJTk5JUM0JTgwJTlEJUE1JTJGJTEzTSVCQyUwNHAlQTBKJUE4JTlBJUE0JUNBJUJGJUVGJTk4NCVERCVCNHUlRDMlQjQlMDclMEIlN0M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